package com.alipay.sdk.auth.demo;

import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import com.alipay.sdk.pay.demo.R;

public class CallbackActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.auth_callback);

        Log.e("CallbackActivity", "----------- onCreate");

        
        TextView cbText = (TextView) findViewById(R.id.callback_text);
        List<String> params = getIntent().getData().getQueryParameters("resultCode");

        StringBuilder builder = new StringBuilder();
        for (String str : params) {
            builder.append(str);
            builder.append("\r\n");
        }
        cbText.setText(builder.toString());
    }
}
